package cn.lili.modules.order.order.entity.dto;

import cn.lili.common.vo.PageVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("订单dto类")
public class OrderDTO extends PageVO {

    @ApiModelProperty("订单编号")
    private String sn;

    @ApiModelProperty("礼包类型id")
    private String packId;

    @ApiModelProperty("礼包商品名称")
    private String goodsName;

    @ApiModelProperty("礼包名称")
    private String packNames;

    @ApiModelProperty("会员名称")
    private String nickname;


    /**
     * @see cn.lili.modules.order.order.entity.enums.OrderStatusEnum
     */
    @ApiModelProperty("订单状态 全部,待付款,已付款,待发货,已完成,已取消,待自提,处理中,已出库")
    private String orderStatus;

    /**
     * @see cn.lili.modules.order.order.entity.enums.DeliverStatusEnum
     */
    @ApiModelProperty("发货状态 待发货,已发货,无需发货，已取消")
    private String deliverStatus;

    @ApiModelProperty("下单开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;


    @ApiModelProperty("下单结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


    @ApiModelProperty("购买人身份证号码")
    private String buyerCardNo;

}
